<?php
/**
 * 货币表的操作
 * @author Ju <hipop@126.com>
 *
 */
class Application_Model_DbTable_Currency extends Application_Model_DbTable_Base
{
    protected $_name = 'currency';
    

	/**
	 * 货币id-名
	 * @return array
	 */
	public function getKvIdName(){
		$rows = $this->fetchAll();
		$data = array();
		foreach ($rows as $r){
			$data[$r->id] = $r->name;
		}
		return $data;
	}
}